fixed Makefile for multiple platforms