added -shlib option for portability