Adds additional checks to enable more options for the build-only check that compilation is successful. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>