Windows console app calls libbibledit.dll function