Make sources compatible

  1. Sources should be compatible with the DOOCS for Linux and Windows.
  2. Sources (mainly headers) should be possible to compile without any warning