Fix compile-time errors

Fixed all current compile-time errors (but run-time errors are sure to
remain as certain critical features have yet to be fleshed out).