Fix an OS X API deprecation
Fix another OS X deprecation.
Fix strict aliasing issues.