Started work on portable makefile

It seems to work, but there are a few lines that are necessary in atsmake-port-post.mk (related to LDFLAGS) that shouldn't be - I'll point them out in a comment inline.

Also, I copied over ats2 flymake, which seems to almost work on my system. Running flymake-compile seems to possibly show some sort of buffering issue.