Added a make target to install all required packages on Ubuntu based distributions and fixed some linker flags.