Fix typo.
Use ASSERT instead of assert.
close handle
make valgrind happy
Codestyle fix
fix windows ifndef.
Add spaces.
Add space.