build: fixed issue while building with the LWIP feature enabled