Fixed out-of-source build
Py3k compatible detection
Fixed undeclared memcpy error in esch.c
Merge pull request #1 from xantares/master

Fixed some build issues