fixed compile error on newer C++11 compilers (g++48, clang33) that dont accept a cast to (char)NULL