Fix for MacOSX 10.9/Xcode5~6