fixes for build name build with gcc4.8 and -o2 flags