Fixed most simple compiler errors