Patch taken from upstream fixes an Invalid argument error while trying to get the IP address of an interface. Makefile was updated to current style. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>