update makefile to add support for arm builds

I needed to update the makefile with this patch to be able to cross-compile influxdb to ARM architecture and to generate a package for the cubieboard arm board (should be the same for a raspberry pi).