First, don't build on Windows. you have to jump through all sort of hoops related to maximum path lengths.
I used CentOS 7 on VirtualBox for this exercise.