Fixed compiling with GCC

This fixes #1