build: splitup clang and gcc lto flags

Change-Id: Ic1e8a1c764b3dc4f5c5a718edd66862cd6c42629