Use -ldl when testing whether -m32 and -m64 builds work