Use INFINITY and NAN instead of strtod

This fixes an error `syntax: overflow in numeric constant "0"` in MSVC builds. Ref. #6230 and #6349.

Also adds `extern "C"` on bitvector - there will be several more of these, for ccall-only functions that weren't needed to link libjulia or the REPL exe.