fixed compilation errors so that make works