Applied 3 packaging-type patches from James Cowgill

These fix things like line-endings/capitalisation and man-page installation, and avoid clobbering a user's CXXFLAGS settings.