Windowing compile fixes for clang