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.
Merge pull request #8 from fluffos/next-3.0

Next 3.0