Fixed compilation errors on Windows.
Merge pull request #1 from dumganhar/refptr-win32-fix

Fixed compilation errors on Windows.