Support loading library in scm