added missing library and minor fixes