macosx/framework: Fix a bit the cmake generation script.