trying to fix some compilation problems