fcp.c: fixed compilation errors