Making the code compile on linux with g++ compiler.