added changes to get a working windows executable@