unused variables
fix 64bit warnings
64bit warnings