fixes some compilation errors