Updated buildfile

The old buildfile wasn't working anymore so I updated it with the latest
from the L2p template project.