Fix build error on network < 2.4. Closes #22.