call cvInitSystem before CreateWindow