(OSX) Fix build for OSX Mavericks
Merge https://github.com/rdanbrook/nestopia