Fix const correctness issues.
Merge pull request #5 from phusion/master

Fix const correctness issues