optparse: need to link tests against libpthread