fix compilation in gcc
fix tests for gcc
Merge pull request #4 from mek-x/fix_gcc

Fixing compilation and tests for GCC on Linux