fix bugs around load path for libraries.