Fix build system configure script