compile lib to right spot