Changed libGDX version to v1.4.1, and also fixed unsafe operations.