Glenrothes library battle lost as demolition gets under way