If the building is preset, you can make it a unit, change its rotation by clicking on it and setting the degree, then going back to object editor and making it a building again. It will retain its angle.
But thats only for units that already exist on the map.