fixing msp430 build and cleanup on clang