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

Also fix dtrace building.