modified with a replacement for main.cpp
Downloading the one file right from github was easier than including a patch file