add bootstrap.sh to generage configure script and run configure
run-time checks instead of asserts