Dynamic library compilation script