Fixes for clang-compiled happy being used with GCC

This is along the same lines as https://github.com/simonmar/alex/pull/37