fixes some compilation issues