ccmake: Refactor BUILD_CursesDialog option logic Move all the current logic behind `if(UNIX)` conditions to make room for other platforms to be added.