Check for release libraries in debug builds

This branch checks for release libraries in addition to debug ones in debug builds.

Fixes #20 

@muratsevim @wjwwood please have a look