Workaround for different binary offsets in sapi_globals

Ugly, but *hopefully* works on all systems.