fixed VS build. Todo: fix crash after loading raffiles