add the -ldl flag, or people won't stop creating issues in github ;)