mingw build links res file now; clean up gcc warnings