Cleanup: removed dead code, and use C99 typedefs for int64 (supported by all modern...