Improve drawbuffers performance

drawBuffersWebgl is called on every draw call. This makes using draw buffers very slow. I changed it to only call drawBuffersWebgl if the render target has changed. 

The PR also contains some fixes of warnings and hints.