Make the modified code be able to build on Linux machine