Correct check for mysql library/header when USE_MYSQL is defined.

Also fix dtrace building.
Merge pull request #98 from sunyc/master

Correct check for mysql library/header when USE_MYSQL is defined.