compile fixes for clang