Fixed GCC static compilation errors