some compilation fixes