add controls to switch geometry with the tab key
fix mingw build where _WIN32 is defined and dirent.h is also available