Define _GNU_SOURCE if not defined
Add support for embedded instances