Fixed namespaces, indentation and SD_* constants under unix