fixed build type detection for findmodule wrappers