[fix] compilation errors & warnings