Allow for optional static compilation by overriding BUILD_SHARED_LIBS to OFF

The default remains building liblua as a shared library because [BUILD_SHARED_LIBS](http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:BUILD_SHARED_LIBS) is set to ON in `dist.cmake`. However, this patch makes it possible to build statically by changing this variable.