Fix OpenSolaris gcc4 warnings: iovec type mismatches, missing 'static'