Fix warnings for string literal -> non-const char*
Fix non pointer user of NULL