Add closing -Wl,-no-whole-archive directive to shared object build target
libdl libm and libresolv dependencies seem to not be needed on linux
Merge pull request #5 from wjjensen/master

Resolve link errors when building shared object