fix static warnings
Merge pull request #2 from daankortenbach/master

fix static warnings