fixed compilation errors in hake.c