Modified testapp build script to link against IOKit, CoreFoundation, ApplicationServices and libz in MacOS X because physfs needs them