Added preBuildCommands to create lib dir.