build system improved; mac os support; sdk config support