Added def file for dll exports, and CMakeLists.txt additions to build a dll and a test program. Tested with VS 2008 express under Windows 7.