Cleanups of the mailboxing code
Add some performance stats
movemask function
Fix build
code cleanups