Foreign.Export now generates a .h file with proper typedefs