fixes of delay call for gcc compiler