Create directory for object files.
Fix for unsigned-signed comparison.