Changed library compiling to shared objects; checked for missing objects