Apply Mark Junker's x64 fixes

http://www.hardcodet.net/projects/wpf-notifyicon/comment-page-3#comment-585