Finally got compilation of modules done correctly using lib flag with dmd