fix build for Solaris (SmartOS)