Fix build against Qt < 4.8

Add a fallback for QProcessEnvironment::keys(), which was added in Qt 4.8.