cmLocalGenerator: Remove AddCompileDefinitions method
This method offers the same definitions as GetTargetDefines
except
that it excludes the "export" macro on shared libraries. Update call
sites to use GetTargetDefines
instead. Some of them were incorrectly
excluding the export macro.