Comply to CRAN policies and make sure it builds under windows