Oil heads for first monthly gain this year as supply tightens