Why not link those libraries statically? Yes, it will take up lots of extra space, but at least you can then install the binary on an N900 without it exploding.