Log Message: Some fixes for SunOS - define BSD_COMP for the build, - avoid configure issues using non quoted 'which', - and NODEV needs to be undefined prior to using the name in an enum as it is defined by SunOS system headers unfortunately.