Added support for custom flags for configure