fixed build for php 5.3/4
fix for windows x64
Merge pull request #1 from weltling/master

Several windows fixes