Fixed warning messages during build process,

-C4101: Because of unused variable (zval).
-C4090: Missing 'const' keyword.
-C4244: data loss, happened due to conversion of data type.
mgdm is correct - this needs to stay for 5.3 support (sigh) but it can be wrapped in an ifdef to avoid the warning