Always use debugging options in CMake build
Fix compile error looking for MAXPATHLEN