'getwork' protocol fix

Can you add the following line to "main.cpp" to fix the 'getwork' protocol?

http://pastebin.com/vL9aUzKg

thank you.

ps. sorry for this 'crippled' pull request, please 'close' it