Killing some compiler warnings

wrapping temp zval in same ifdef as code that actually uses it
Rest of compile errors

Finished compile errors
Merge pull request #11 from gtkforphp/compiler_warnings

Compiler warnings