Mac bootstrap build fixes

Make the bootstrap build cleanly on Mavericks. This particular build was tested using

perl bootstrap_modules.pl -m modules-mac-rasttk.dat -d  /Applications/RASTtk.app/runtime