moved Linux source files into an if statement