Missing #
Removed -ldl
Edit configuration file only if not present
Fix pin_off in sqlite mode