Initial FPHC import + compilation fixes