work around the gcc 4.6.3 -ldl strange behaviour