Fix error when enabling debug mode
Reduce complexity of Derelict::VirtualMachine