modified libraries in makefile, optimized preallocation