Fixed issue where lin_thread.c was built when the compiler flag was not set