Fixed static library build