update Makefiles and require GNU make
change build settings