Add the main header, a compile test and a makefile for macosx+macports.