Add function to return the post type constant for use with php5.2
dont' access static constant since php5.2 barfs when you do
Merge pull request #93 from post-forking/php52-fix

Improve php5.2 compatibility. fixes #91