Avoid double compiles on Linux