added support to be cross platform linux+macosx