make the build system link to the "quadmath" library if it is supported

Thanks a lot to Roland Kaufmann for the support.