fixed syntax error
enabled gcc optimisation
managed to listen on a socket