remove -static compile flag

I think we had this there while trying to get the build to work, but I don't think it should be necessary. Tests pass locally and on Travis without it.