Fix the override of glBindFrameBufferObject when parameter is 0

and fix a couple of warnings

Change-Id: I77b692ea66df0f692017c3d16660701c09297e1d
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>