added the way to work with conflicting mode_t declaration

needs some header in wx distro to be patched
remove template.rc

After playing a bit:

- we can overwrite template.rc to include the full path wx.rc, but
- we can't yet set the include path for rc

that means there's no way for now to inject some custom resource file

Building without wx.rc would probably cause some missing resources,
but manual testing showed it should work.
Merge pull request #53 from weltling/master

windows fixes