Fix for building  netxng for CMake