build system: Actually link with libxnet and use CPPFLAGS.