Try to fix minimize behavior on OS X