Fix issue #128. Add -lm and -ldl