Use portable msleep()