fix Issue 10386 - Package import feature breaks with static libraries