Fixed build on OS X and fixed major issue with window resize