Add libgetopt convienience library

To stop automake warnings

Also make libmtwist and getopt dirs optional; do not compile in them
if they are not needed.