cmake: build shared libraries
g++: change syntax to compile with g++. This is a bug
remove erroneous error handling.
testing: add a bunch a request to test for asynchronous behavior.