Make chardev tests compiles.