Fixes #6

Added some locking (no way to tell if it'll work as I can't compile) and added configuration support for setting context hints. (Anti-aliasing, resizable window, etc)