Fix Linux and Windows builds.