change bzero (non-stdlib function) to memset
int64->int8 conversion warning fix
signed vs unsigned comparison fixes
visual studio's "safer" file open (to get rid of warning)
Merge pull request #1 from jarikomppa/master

A bunch of warning fixes and small portability fixes