[config] further changes to fix problems in non-posix platforms