Fix bug in GUI app and build process for Mac OS X 10.9 Mavericks