Added automatic library building
Hello, following this issue I modified the makefile to automatically build libraries.
I do not know if what I did is best practice nor if it works for other persons so this needs to be heavily tested before going into production but I just figured I'm going to post this anyways