[MacOSX] Fix some small issues, this should be the least for scripting
Remove some fully outdated code (#pragma, from Henner Zeller's report, and some other things)