fix build on Linux, fix: always catch const references of exceptions
Merge pull request #4 from aggsol/master

fix build on Linux, fix: always catch const references of exceptions