Reverse window position size order for OSX
Code cleanup
Add internal flag for AVF, not working on 10.9