Make test-app library functional as shared lib on windows