Some configuration/build fixes, so building basicaly everything else than the library can be disabled
Merge pull request #613 from BtbN/compile_pure

Some configuration/build fixes