Only compile against libdxflib when USE_DXF is defined.