fix build warnings on SmartOS