Added logic to optionally build different physics packages.