Attempt at cross-platform makefile

This seems to work when compiling with MinGW, at least in msysgit.
More research needed of course!