Compatible high-order meshless schemes for viscous flows through l2 optimization