fixes for gcc 4.0: void * and pointer to function are not compatible anymore