Patched project to make it compile with modern compilers