Remove include osdetect.h, fix compilation error