Add OSTYPE build-system variable, and use it