yeah i love fat shared libraries (libraries with both PE and ELF headers that refer to the exact same executable code. for compatibility.)
(the PE header starts at 0x80, and conveniently, the ELF file header ends at 0x40. basically everything else lives at offsets specified in the file headers, so you can have both)
all you need to add is compiler-generated thunks adjusting the calling convention