[LP] Removed dependencies for everything except SfLib, fixed some other stupid stuff.