Reorder window event queue polling

Event polling has to be done in the same order as window creation.
Using EventManager
Started using precompiled headers on OSX
Remove custom pos/rect types in favor of sf::Vector2/Rect
Cleaned up the LevelFactory