Can now build on newer gcc 4.8 and friends as well as with cmake 2.8.11.