small fixes for win_cb compilation