Adjust for native window API changes for sync fence support

Signed-off-by: Simon Busch <morphis@gravedo.de>
Cleanup offscreen rendering code

Signed-off-by: Simon Busch <morphis@gravedo.de>