build: bump min cmake version to 3.13 and remove workarounds