SOFTMENU: add CMake file.
SOFTMENU: fix prototypes.
SOFTMENU: fix signed/unsigned mismatches.
SOFTMENU: fix casts.
SOFTMENU: fix confusion between && and &.
SOFTMENU: suppress uninitialised 'len' warning.