fix missing #ifdef statement breaking compiling when not on linux