Fix compilation warnings
Merge pull request #66 from telly/warnings-fix

Add static to private functions