Fix build with cmake < 2.8.8