2009-09-20 Jens Alfke Added library target, changed some build settings, and fixed 64-to-32-bit conversion warnings.