Fix warnings and add Permadeath checkBox