Update ImageBuffer.cpp

Fixed issue with Ganesh texture bindings becoming corrupted

Corruption occurred when a canvas was used as the source of a texImage2D
pass node-main to WebKit initializer

Fix rogerwang/node-webkit#1989
fix build warnings
Merge pull request #3 from SgtConti/nw

Update ImageBuffer.cpp