Use Boost.Wave for detecting definitions