Implement a mini-ffi to get Win32API working again.