Abstract file path handling across platforms.
Improve binary IO portability.
Add Win64 compatibility.