Add build system with check for gcc.