added tsrm parameter to all methods to make it compile on tsrm platforms
fix compile issues for TRSM
fixed compile issues with TSRM enabled
Merge pull request #53 from jgmdev/master

Call php-config to retreive php includes dir and binary on Makefile.
simplified makefile by using php-config to find the entire include path