Select cryptographic algorithms at compile time

The first patch adds makefile functions to help work with configuration options. The second patch is the actual conditional compilation of the LTC crypto code.