configure: Link tests with -lcomplex if available