Fix build errors for 10.9 Mavericks