Fixed compiling on Linux using GCC and glibc