fix build warnings
fix idle test on linux