Peter Quillin captured the WBO middleweight title after claiming a unanimous points decision against France's Hassan N'Dam in New York.