Add configure script

Thank you @bas-t