Fixed all compilation errors.