only enable osxapp build target on apple systems, clean up configure.ac a tiny bit