Log Message: - use the configure output to decide if some headers should be included. - add some missing headers to get rid of various compiler warnings on alpha. Patches have been fed back to the author.