Fix standalone build on Linux and Mac.