Fix some warnings on VS2013 /W4

Minor fixes/disables to compile warning free on VS2013 at /W4.
Let's just use 0xff here, looks less scary :)