Update src/SFMLEvent.h

Fixed type typo
Update src/SFMLEvent.h

Fixed a typo that was created by fixing the previous typo. Genius.
Update src/SFMLEvent.cpp

Fixed typo
Fixed memory leak and removed heap allocation
Fixed previous commit
Fixes pragma issues with GNU compilers which don't allow the use of #pragma comment
Fixed various warnings about return values.