use static linking for debug
Merge pull request #2 from stefanschneider/master

use static linking for debug