Fixed GCC errors