Implement new native window API method setBufferCount

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