Fix building with static spell