Fix two broken maps, seems python/c++ is a bit more picky about float to int conversions now
Changed datadir to datarootdir. Probably not entirely ok with GNU standards, but at least it works with moderne autoconfs...
Various typecasts...
Removed a number of warnings related to casts. Compiles without warnings now, on gcc 4.8