On G-flux, M5 instantons, and U(1)s in F-theory