Build fixes

With that I can now run the test under Ubuntu 14.04. Unfortunately, platform independence suffers a bit. Maybe it's time for a proper build system ;-)