added fixes for compilation for mc1322x