Solved OSX 10.9 build issues