Fix clang 5.0 build error and add note about building on Mac

Fix clang 5.0 build error.