Fix Makefile for cross-compilation