Fix build dependencies on item and project template projects

For some reason these dependencies were not getting picked up by MSBuild, resulting in an incorrect build order.