Support Solaris platforms.

+ some other autoreconf crud
note solaris support