LIB: Fix bug with MAC addresses being casted to signed "long int"