Implemented pre-parsing of libs. Close #186.