Link with a bunch of necessary libraries
Moved required libraries into a variable