fix detection of modules (fix enesim.pc with static modules)