Linux build compatibility; re-enable exceptions for gamestate operations; fix bug in a test