mac osx build, r15 requirement updates, build system

tested on linux so far...
needs probably:
  $ CFLAGS=-fno-stack-protector make