Fixed the full screen mode issue on OS X (closes #125).