some linux compilation issues fixed