fixed building queue stuff

scheduled actions are counted in building queues so they dont exceed max
queue size when schedule delay is high. there are serious issues with
canceling units in progress and unit ID synchronization