Test OS in Makefile to find correct libs