Add missing tree.h on windows and use STATIC_EXPORT in bitvector

Both changes are required for making julia.h usable under MSVC
Merge pull request #4954 from tknopp/includeTreeH

Add missing tree.h on windows and use STATIC_EXPORT in bit vector (see #4937)