Need help setting up variations of Descent 2 source on modern compilers IDE's.

I need someone to help setting up the varations of descent 2 source code into modern IDE’s and getting them to compile. Your help would be greatly appreciated.

Here’s chocolate descent

Here DXX-rebirth

Here’s the orginal Descent 2 source