attempt to accomodate for non tr1/functional versions of gcc...