edits to compile on Mac OSX (10.8.5)