Fixed disabling of weak callbacks on Apple.