I am back in ubuntu! Added more ifdefs and now Exit in MenuContext is working fine.