Added export decorations for using the executable as a .dll or .so

Signed-off-by: Christian Gunderman <christian@sonofboss.cwru.edu>