Added some initial cmake autoconf functionality. Now need to generate some version strings.