Fix "Redeclaration with no linkage" on SmartOS