Fixes the direct library inclusion on Mac.