Added a couple of functions to the C API

- Also set a call attribute on windows for generating DLL exports
- 1 new test case for rendering to memory

(Squashed version of discard pull request) #2