Tweaked build file, added CoFHCore requirement, fixed crash.