fix for newer gcc
Merge pull request #12 from sej7278/master

Fix for newer GCC versions (const)