Build into a static lib first, before linking into a .dll.so for Wine