Fixed linux imports; Fixed problem with many linear segments