USE OSXAPP instead of APPLE and fix withval->enableval in AC_ARG_ENABLE