Fixing Windows problems

This version solves the problems found in the windows compilation. Still, some warnings rest 
with the -pedantic, -Wall and -Wextra flags with the gcc version 4.4.5 on Ubuntu (debian distribution).