Retro-compatibility fixes

- For compilers that don't support C++11 features
- For Qt5 versions older than 5.2