mesa: Fix some function prototype mismatching