zsys.c fixes for windows and for non-android build breaks