More windows fixes, static builds work too now.

declspec macros are "" in static builds
imports mangled hdf5 symbols