Remove severely outdated build system that doesn't work
    and wasn't maintained.
Merge branch 'bugfixes' into 3.1