added used windows defines to configuration
Added WriteBytes() to FileManager, changed some parameters to const