/.../ Since pike modules tend to be built before pike, this was the source of multiple problems. /.../
This has been fixed in 7.8 with the work to switch to dll's on windows. The sequencing is only enabled when required though - you'll have to add some stuff to src/configure.in so that @LDSHARED_BASE_REQS@ is replaced with a dependency on the right object.