Fixed some 64-bit releated problems on os x.
Added missing file.
Hack to load code below 4GB, and to make 32-bit vm allocates work.
Tweak of the linker commands.