put type-ahead class declarations into namespace for building on Mavericks (OS X 10.9)
fix compilation warnings on Mavericks (OS X 10.9)