fixed compiler errors when using clang 3.3