Compile examples and fix test cases

* Examples are now compiled (but not installed) to maintain API
  compatibility
* Statement test cases hung with no MySQL server due to not testing the
  initial poll loop for errors
Merge pull request #100 from LinuxJedi/compile_examples

Compile examples and fix test cases