Fix setting autoconf flags for using nifs