Merge pull request #25 from trtom/master

make sure the static build uses the static build option!