[osx] fix broken build on 10.7+, and now we find out what 8ffa50cb586ce3032f62d329c0e6a485cee5df4f was all about