Made a ifdef for packing data to work on windows also.