fixing package problems. and possible compilation problems.