Updated to use gcc 4.7

Use gcc 4.7 and update submodules.

Closes #2