Replace implementation of linkWithLibrary()
Add missing header file and linker parameter
Merge pull request #34 from ddcc/master

Replace current implementation of linkWithLibrary()