Fixed buildsystem

Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
Fixed build errors

Removed test/Makefile (generated by autogen.sh)

Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>