include stdlib.h for free and realloc
fix warnings in linux_get_device_address