Cleanup configure script

Cleanup and remove unnecesary flags for configure script.