Remove duplicate js_newerror prototype.
Fix ifdef order to allow building jsdate on cygwin.