cmake: fix install step on Mac OS X