First commit

- Added Lion's fullscreen support
- Added some missing features
- Fixed crash when closing a teared window
- Fixed several memory leaks