Remove windows specific pragma
Fix -Wchar-subscripts

Don't use potentially signed chars for array indexes :P
One unsighed comparison left out
Fix conversion of literals to non-const char *
Replace assignment of NULL to non-pointer vars