Fix missing psycopg2.extensions