expose Key.get_raw, improve makefile