use static linking for debug
Merge pull request #12 from stefanschneider/wip2

use static linking for debug