(v)dprintf() is not supported in os x 10.5/xcode 3.1.4 (latest powerpc version)
(v)dprintf() calls replaced with (v)fprintf()