Turn the building into a unit, change facing, turn back into a building. Can't be done automatically, has to be done for each individually, and I haven't even tested if it can be done in-game, but it does work with pre-placed buildings, so I imagine it work with non-pre-placed as well.