[LSan] fix link flags for building unit tests