re-add env_handle as argument to foreign function typedef