fixing up autotools a bit
adding more useful error messages to configure