Fixed all gcc warnings, most fairly basic but a couple that may make a difference.
Fixed last of the warnings from g++.
Tidied up CastepGeomOptimiser a bit: Got rid of dependency on AtomSpeciesDatabase.