Setting up Makefiles and switch to select version 4