Switching to multiplatform res file.

and various cleaning