add def file for dll exports
add test Makefile
change builder to C89 declarations
update dll def with public functions