Edited to allow dynamic library generation
Added install step
Added install step for headers
Added install target for compilation as a static library
Fixed equality comparison with extraneous parentheses