updates to compile with newest OSX