fork and modified by citusdb's mongo_fdw to support unix sock connection.