Voters in Madagascar headed to the polls on Thursday in a presidential election boycotted by 10 out of 12 opposition candidates and marred by weeks of violent protests.