Various fixes for Win64
Work in progress
Got coff loading to work in win64