support for MACOSX compilation

Signed-off-by: naazgull <pedro.figueiredo@gmail.com>
removed old source tree