Hurricane races toward Nova Scotia; Maine on alert