Setup the libs we use.

This should handle the private libs without issues no matter the platform
(thisis code suggested by qtcreator).