Don't try to link to libdl on non-Linux systems

This fixes the build on FreeBSD for instance.
Add "compile" to .gitignore
Merge pull request #5 from dumbbell/link-to-libdl-on-Linux-only

 Don't try to link to libdl on non-Linux systems