Add support for windowless applications on OS X

Based on the work done by @ArEnSc, magnum-info at least seems to work correctly.