fixed compile error generation for clang 3.5