Fixes some issues with missing libs