Fix compilation on Linux/Mac.