[MacOSX] Fix some small issues, this should be the least for scripting