Use -fsanitize= also as linker flag
This ensure that the correct libraries are linked and fixes undefined symbols when enabling ubsan on GCC 10.2 at least.
This ensure that the correct libraries are linked and fixes undefined symbols when enabling ubsan on GCC 10.2 at least.