Build the static library on windows and linux.