Fix linking to debug libs
Merge pull request #25 from tbeu/fix-debug-link

Fix linking to debug libs