adds missing header include
fixes m_nThreadID on osx

QThread::currentThreadId() is not an integer on osx (it's a void *)
fixes ASSERT macros on osx
More fixes to geometry handling.
Merge branch 'osx-famitracker-fix' of github.com:hyarion/nesicide into hyarion-osx-famitracker-fix