Building and using an external library