Fix compilation on Linux and Mac.