-Fix some C-type compliance issues

-Fix some variable declaration issues
-Include zfile (oops I forgot)
-C-type declaration issues found when compiling in Release