remove syntax errors from OSX platform code