Improved the build process.

Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>