Fix some incompatibilities with 10.8 32bit