Add missing typedefs.
Fix clang compiler error.
Add priority_scheduler example.
Merge remote-tracking branch 'upstream/master'