Uniting control laws: On obstacle avoidance and global stabilization of underactuated linear systems