use -fPIC -shared when compiling "libraries" demo

This fixes the "libraries" demo's setup.py for building the call_mymath
extension.
Merge pull request #256 from kanzure/fix-libraries-example

use -fPIC -shared when compiling "libraries" demo