Fixes GCC compiles errors