fixe Makefile for BSD make

BSD make has no `export` directive. Fixes #2565.