Upgraded dependencies

Upgrades various build dependencies to later versions.

Two notes:
I had some tests failing the first time I tried to build this, but I have not been able to reproduce this on subsequent runs. Don't really know why that would be, but let me know if you encounter problems.
JUnit recently released version 4.12, but I couldn't find a newer version of the junit-dep artifact.