Add support for windowless applications on OS X.