Fix build for platforms without AF_LOCAL definition. Fixes #14