Fix compiler errors and warnings