Fixed so it compiles on SmartOS