Compile as static library