prima: hack for gcc 4.7