Fix linux build of tests
* src/attachment.cpp (Attachment::copy_to): Ifdef definition. * tests/Makefile.am (AM_LDFLAGS): Add GPG_ERROR_LIBS