Fixed build errors with undefined references in enc.c