Parse program header