fix compilation errors on lonestar