fixed linux compilation problems