Add pop3 stat

Added support for POP3 STAT command
Also fixed Visual Studio complaints about incompatible types (added explicit pointer casting)