made it compile with some warnings