improved configure script (changed defaults, can pass on options)