No idea about the connection issues. But yes, in order to compile MCS yourself, you need gcc version 4.8. It should be fairly easy to install:
https://forum.cuberite.org/showthread.ph...4#pid17334
https://forum.cuberite.org/showthread.ph...4#pid17334