Crossplatform Makefile + fixed crashes