Build static lib

Currently only a dylib/.so is build and it is required to set LD_LIBRARY_PATH to run examples/play around.