Various definitions from libcxx need to be set in the same way as if building libcxx itself.
Split out from D90021 as requested by @ldionne.
The comment/define in fallback_malloc.cpp seems to be a bit stale; it was added in 4b47cbccd453c089f0a1d1699dd80718943986d0, but lost its current effect in 42f9868cd80d2e09c75f4642e0a66c7ecd38cf18 and the comment was reworded in 51fbb2e70ae8a2a8df24845f7b6fdf4a1aebce4f without touching the define. - @EricWF
This change in itself shouldn't have any effect on that aspect in fallback_malloc.cpp (whether it works as intended or not) as we still define _LIBCPP_BUILDING_LIBRARY, just defined projectwide now.