Upgrade build system, update documentation, add check for faulty gcc compilers