Improve compile flags and relocate WANT_DENCE defite to Makefile