fixed broken patch file, fixed g++ requirement on host