fix clang compile error from unused variables on osx