fix crash noticed when building with clang
reimplement midi controller map and learn dialog; fixes various bugs