Fixed crashing on windows. Added deply option to Makefile