added configure script, moved Makefile configs to Makefile.local