Added setlocale "C" in main(), since a norwegian locale makes atof (used
in the XML parser) expect ',' as a decimal point.