lwip and C++ compilation/linking issue