Make the autotools build system again working

These commits move all the code back to autotools generated stuff and allow us to create the pacakge again (see my obs repo for created package).