Adding a Makefile rule for compiling the binary as a library.
Resolved merge conflict.