generic: build fix for non *nix systems refs #247