fix unaligned memory accesses happening on Windows; prepare for release