Buildsystem fix

Cleanup build system, incl. dropping building of an unnecessary library.