Fix some includes and warnings for Linux compilation

added include of cstring.h, changed var type for warnings (which default to errors with current compiler settings) concerning unsigned int / int comparison in cmd.cpp