meson: do not link include tests
Build them as static library, all we want is to test if headers would compile. To avoid linking dependency, create static lib with all object files. Meson does not provide object build target currently, so we have to gather all in static lib to avoid custom targets which wouldn't be portable.