Fix and improve OSX configuration

Use workarounds to completely avoid to use buggy options/behavior on some OSX versions :
* the -n option of cp
* the set() command of cmake, if CACHE is set and FORCE is not