#3 add platform flags last