Edits necessary for compilation of OS X.