Add -g to LDFLAGS when compiling with LTO to get debug symbols.