minor code tweaks.
use QMutexLocker.
Merge branch 'master' of github.com:appleseedhq/appleseed
fixed styling issues.
fixed compilation on os x.
fixed reporting of process memory size on os x.