Added changing directory when launching on Linux (closes #157).
Updated build script on OSX to not require 10.6 SDK (closes #231).