remove bzip2 support from sort command
remove warnings about unused local typedefs

boost has some of these that make gcc 4.8 freak out