Fixed some errors in linux environemt