Window.cpp: Make flag building a little more readable
Introduce availableWidth(), availableHeight() (still missing from vcproj)
Implement accurate availableWidth / availableHeight on OS X