fixed windows build
fixed export for unit test
reverted 243d175bb01b3502d0701fff5a865006db3e8f67, since DYN_LINK is exactly the define which breaks builds with serialization lib