library: use extensions when loading std.cfg and posix.cfg