fix compling issues