build: Only enable symbol reduction if the compiler does proper DCE