Improved build scripts for Mageia and Windows.