Added some constants which are missing in PHP < 5.4.
Merge branch '2.2/develop' of git://github.com/pyrocms/pyrocms into 2.2/develop