First code

Mainly setting up the environment: do not try to use MinGW compilers
with Windows API. Errors and warnings everywhere.