added option to compile for earlier Mac OSX versions