Fix compiling contrib/pg_upgrade_support