Added ifdefs for PIC compilation; if not PIC, we don't need to bother with ebx.
Minor fixes.