Fix issues when using clang compiler
Fix to work with gcc
Merge pull request #171 from orbitfold/master

Fix issues when using clang compiler (issue #170)