Fix --with-mysql-sock handling.