Fix some warnings on VS2013 /W4

Minor fixes/disables to compile warning free on VS2013 at /W4.
do { ... } while(0) -> for (;;) { ... break; }