cmake: fix package generation on Mac OS X