Fixed scheduler-related pedantic warnings on GCC 4.6.