fixing some compilation problems