Fixed clang warning about missing string.h include
Fixed clang warning about using 0 instead of NULL