fix some typos and make it possible to use outside of boost directory.