Remove guile-specific code from lib.scm