Linux (Ubuntu 12.04) compile fixes.
Yet another small change to the OpenIPMI patch as 12.04 in my config seems to run autoconf/automake itself resulting in the reintroduction of the ncurses dependency. DCDBLib build now has the correct parameters to build a Linux shared libary. Also DCDBLib now shows the hint on setting LD_LIBRARY_PATH/DYLD_LIBRARY_PATH again. CollectAgent needs -lthrift to link (because otherwise the missing symbols from libdcdb.so will remain unresolved). Top level Makefile now detects the number of CPU cores under Linux and adjusts MAKETHREADS variable automatically.