Finally compiled on Mac! But static doesn't work. Fixed configure to not do static if uname is Darwin