The BSD build was failing with the error 'WARNING: tablespaces created by regression test cases should have names starting with "regress_"', so the attached patches should fix that.
The windows build is also failing, on this error "../src/port/strerror.c(311): fatal error C1051: program database file, 'C:\cirrus\build\src\port\libpgport_srv.pdb', has an obsolete format, delete it and recompile", which I don't think is related to our patch.