windows fixes for loadram and pushattrib errors