Fixed windows compilation + remove some compilation warning