Fix for compilation bug on GCC 4.7+, ticket #12

Thanks @dirk-thomas for the fix. Builds and tests pass now.

@jack-oquin to review and merge.