Fixed missing stricmp on linux and made isDebug global