Calling build scripts in proper order

Calling build-lib then apps, viewer, examples and prc module