Reorded build options for better compiler compatibility.