build lib with codesourcery toolchain