Fix ibniz2c compiler error and warnings