I ended up having to edit CMakeLists.txt a bit to get it to work out. So I modified the versioning in version.h to utilize the new variable I made. No functionality is changed, just worked on the build system.
Instead of #ifdefing files out, they are no longer included by CMake instead.
Sending/receiving data on a socket is roughly 5.5x faster, after removing data copies and buffer re-allocations.