Make dislocker a library

This helps to build standalone binaries, which where often broken.