tweak pull-refresh detection macro.
tweak for Mac porting.
Merge pull request #3 from jerryrt/master

Mac Port related (with Chameleon) changes