correct few things to compile with gcc