Adding --disable-physics configure option (which is a shortcut for --disable-physics2d --disable-physics3d)