Automates package restore on build

This should fix the recent build breaks on TeamCity.