Minor bug fixes in build processes. Fixed build messages.
Count build targets.