various build and depndencies configuration issues fixed