Use libtool for linking tests
Fix linker error on some systems when using program_options
Merge pull request #242 from dmcdougall/fix-link-error

Fix link error