Fixed GCC warnings about incompatible type conversions