Merge pull request #4 from jturner/master

Make the $ORIGIN linker option work on OpenBSD
Improve compatibility with OpenBSD.

Fix double_cmp to return long instead of double.
Remove -ldl linkage which is incompatible with OpenBSD.

Add test suite for dlopen and dlsym.