Sync project with recent changes.

* Pass parameter "message" and expect SDL_USEREVENT with this code.
* Allow library to be linked with C++ projects.