Changed the scope and compile of SnakeYAML