Twelve hurt in New York building collapse, blaze