Fix 32bit build for func_env