Fix issue with "_g" debug suffix not being applied to libraries and binaries.