common: add defined_ptr/poor mans boost::checked_delete
utilize defined_ptr

and prune some cruft.
common: add poor man's unique_ptr

all in the name of not depending on tr1, c++11 or boost (stoneage c++98
ftw).

a marginal step up from std::auto_ptr but better than nothing imo.
libgambatte: replace use of std::auto_ptr with tranfer/scoped_ptr
gambatte_sdl: replace use of std::auto_ptr with scoped_ptr
atomicvar: missing includes hidden by include order
gambatte_qt: replace use of std::auto_ptr with scoped/transfer_ptr
mediaworker: remedy inexplicable lack of QMutexLocker
mediaworker: nonfunctional/readability. ws mostly.
audioengine: remedy inexplicable lack of QMutexLocker
libgambatte: c++11 narrowing conversion warnings
qglblitter: shut up warning
gambatte_qt: c++11 narrowing conversion warnings
gambatte_sdl: c++11 narrowing conversin warnings