Fix more incorrect HINSTANCE casts