Fix the gemspec loading order of dependencies