Fixed fatal bug packets out of order when using MIT-pthreads.
Removed possible loop when a thread waits for command from client and fcntl() fails. Thanks to Mike Bretz for finding this bug.
Changed alarm loop in mysqld.cc because shutdown didn't always succeed in Linux.
Removed use of termbits from mysql.cc. This conflicted with glibc 2.0.
Fixed some syntax errors for at least BSD and Linux.
Fixed bug when doing a SELECT as superuser without a database.
Fixed bug when doing SELECT with group calculation to outfile.