C++ compatibility

Only C++ errors are fixed, no functionality changed.

Code now compatible with Visual Studio 2008. I think it's a good chance to increase number of active developers.
I think that freeserf.h/.c it's an application.
If i want to make other application/library (net client/server for example) i must copy definition to other header/source. It's not very good idea.