Clear compiler warnings on 64 bit system.
Store return value in environment instead of passing through longjmp, since int type is not big enough to store pointer in 64 bit machine.