Completed cg solver linking with fully flens fem.cpp

Need to link gs, but the headers have gone astray.