FIX: Check Return Code of External Configure Scripts

This adds a check for the return code of external configure scripts in `CMakeLists.txt`. Until now this wasn't checked and it might potentially break the build, let's keep our fingers crossed.