Fixed two bugs creating vbos under windows. Not tested for linux or mac hypervisors