Adaptive control of flow-induced oscillations