Some configuration/build fixes, so building basicaly everything else than the library can be disabled