Modifications to compile emstudio in OSX environment