fix build for Lion