Fix "suggest parentheses around" warnings
Fix warnings about char[] to char* conversions
Fix "suggest explicit braces to avoid ambiguous else" warnings
Fix "missing sentinel in function call" warning