Adapt makefile for multiplatform (osX and Linux)