make this compile with some PORT versions