Move HR_LEGACY_BUILD ifdef to after PCH.

The ifdef wasn't having the desired effect because of the PCH include.