Use a malloc(3) and a strcpy(3) instead of a strdup(3).
Added -DVxWorks=1 to CMakeLists.txt to facilitate platform independence