Bumblebee daemon and client rewritten in C